from rest_framework import serializers

from my.models import User

class UserInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = ['id', 'username', 'email', 'nickname', 'user_pic']
        read_only_fields = ['id']